|
|
|
|
|
|
|
Figure 10.12
The initiator and generator for a Gosper snowflake. |
|
|
|
 |
|
|
|
|
4 ' Number of points in the initiator. 230, 54 ' Initiator point 1. 54, 54 ' Initiator point 2. 54, 230 ' Initiator point 3. 230, 230 ' Initiator point 4. 0.4472136 ' ScaleFactor. 3 ' Number of turns in the generator. 26.565051 ' Generator turn 1. -90 ' Generator turn 2. 90 ' Generator turn 3. |
|
|
|
|
|
|
|
|
The Ch10 directory on the CD-ROM contains several snowflake definition files that you can load using program Flake2. When you load a new .sno file, be sure you run the program with a small level of recursion until you know how complex the snowflake will be. In one test on a 133MHz Pentium, a level-four von Koch snowflake with the 18-segment generator described in file Koch18.sno took more 52 seconds to draw. |
|
|
|
|
|
|
|
|
Figure 10.13
Depth one, two, and three Gosper snowflakes. |
|
|
|
|
|